package tm.pojo.dto;

import tm.pojo.QuestionOpstionPojo;

/**
 * @author Rocky
 * @create 2022-09-27 18:08
 */
public class AllLoveQuestionAndAnswerDTO {
    private AllLoveQuestionAndAnswerDTO(Builder builder) {
        setId(builder.id);
        setQuestionText(builder.questionText);
        setQuestionOpstionPojo(builder.questionOpstionPojo);
        setAnswer(builder.answer);
    }

    public Integer getId() {
        return id;
    }

    public AllLoveQuestionAndAnswerDTO() {
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getQuestionText() {
        return questionText;
    }

    public void setQuestionText(String questionText) {
        this.questionText = questionText;
    }

    public QuestionOpstionPojo getQuestionOpstionPojo() {
        return questionOpstionPojo;
    }

    public void setQuestionOpstionPojo(QuestionOpstionPojo questionOpstionPojo) {
        this.questionOpstionPojo = questionOpstionPojo;
    }

    public String getAnswer() {
        return answer;
    }

    public void setAnswer(String answer) {
        this.answer = answer;
    }

    private Integer id;

    private String questionText;

    private QuestionOpstionPojo questionOpstionPojo;

    private String answer;

    public static final class Builder {
        private Integer id;
        private String questionText;
        private QuestionOpstionPojo questionOpstionPojo;
        private String answer;

        public Builder() {
        }

        public Builder id(Integer val) {
            id = val;
            return this;
        }

        public Builder questionText(String val) {
            questionText = val;
            return this;
        }

        public Builder questionOpstionPojo(QuestionOpstionPojo val) {
            questionOpstionPojo = val;
            return this;
        }

        public Builder answer(String val) {
            answer = val;
            return this;
        }

        public AllLoveQuestionAndAnswerDTO build() {
            return new AllLoveQuestionAndAnswerDTO(this);
        }
    }
}
